package com.sq.partner.manager.dao;

import java.util.List;

import com.sq.partner.manager.mybatis.model.GatewayConfig;

public interface IGatewayConfigDao {
    /**
     * 查询所有
     * @param gatewayConfig
     * @return
     * @throws Exception
     */
	public  List<GatewayConfig>  getConfigList(GatewayConfig gatewayConfig) throws Exception;
	/**
	 * 根据名称查询
	 * @param configName
	 * @return
	 * @throws Exception
	 */
	public  GatewayConfig    getConfigByName(String configName)  throws Exception;
	/**
	 * 新增
	 * @param gatewayConfig
	 * @throws Exception
	 */
	public  boolean   addConfig(GatewayConfig gatewayConfig)  throws Exception;
	/**
	 * 编辑
	 * @param gatewayConfig
	 * @return
	 * @throws Exception
	 */
	public  boolean   updateConfig(GatewayConfig gatewayConfig)  throws Exception;
	/**
	 * 删除
	 * @param gatewayConfig
	 * @return
	 * @throws Exception
	 */
	public  boolean   deleteConfig(String configName)  throws Exception;
	
}
